package com.pmcc.core.repository;

import com.pmcc.core.entity.security.Organization;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by huihui on 2017/8/16.
 */
public interface OrganizationRepository extends JpaRepository<Organization, String> {

    List<Organization> findById(String id);

    List<Organization> findByParentIdAndDelFlagOrderBySortNoAsc(String parentId, String delFlag);
}

